nums = [11, 22, 33, 44, 66, 3.14, -44, 3334]
nums.sort()
print(nums)

infors = [{"name": "y", "age": 12}, {"name": "w", "age": 13}, {"name": "c", "age": 7}]
infors.sort(key=lambda x: x['age'])
print(infors)

# 只要有age就可以排序
infors = [{"name": "y", "age": 12}, {"name": "w", "age": 13}, {"name": "c", "age": 7}, {"add": "gz", "age": 44}]
infors.sort(key=lambda x: x['age'])
print(infors)
